<table class="table table-responsive" id="bonuses-table">
    <thead>
        <th>ID</th>
        <th>编号</th>
        <th>名称</th>
        <th>用户Id</th>
        {{--<th>Distribute Id</th>--}}
        <th>优惠金额</th>
        <th>类型</th>
        <th>允许使用所需最小金额</th>
        {{--<th>Max Amount</th>--}}
        <th>允许发放开始时间</th>
        <th>允许发放结束时间</th>
        <th>允许使用开始时间</th>
        <th>允许使用结束时间</th>
        <th>使用时间</th>
        <th>使用状态</th>
        <th colspan="3">操作</th>
    </thead>
    <tbody>
    @foreach($bonuses as $bonus)
        <tr>
            <td>{!! $bonus->id !!}</td>
            <td>{!! $bonus->sn !!}</td>
            <td>{!! $bonus->name !!}</td>
            <td>{!! $bonus->user_id !!}</td>
            {{--<td>{!! $bonus->distribute_id !!}</td>--}}
            <td>{!! $bonus->money !!}</td>
            <td>{!! $bonus->type==1?'满减优惠券':'无限制优惠券' !!}</td>
            <td>{!! $bonus->min_amount !!}</td>
            {{--<td>{!! $bonus->max_amount !!}</td>--}}
            <td>{!! $bonus->send_start_date !!}</td>
            <td>{!! $bonus->send_end_date !!}</td>
            <td>{!! $bonus->use_start_date !!}</td>
            <td>{!! $bonus->use_end_date !!}</td>
            <td>{!! $bonus->use_date !!}</td>
            <td>{!! $bonus->use_status==1?'已使用':'未使用' !!}</td>
            <td>
                {!! Form::open(['route' => ['bonuses.destroy', $bonus->id], 'method' => 'delete']) !!}
                <div class='btn-group'>
                    <a href="{!! route('bonuses.show', [$bonus->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-eye-open"></i></a>
                    <a href="{!! route('bonuses.edit', [$bonus->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-edit"></i></a>
                    {!! Form::button('<i class="glyphicon glyphicon-trash"></i>', ['type' => 'submit', 'class' => 'btn btn-danger btn-xs', 'onclick' => "return confirm('Are you sure?')"]) !!}
                </div>
                {!! Form::close() !!}
            </td>
        </tr>
    @endforeach
    </tbody>
</table>